package cn.tedu.cinema.movie.pojo.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Movie {
    @ApiModelProperty(value = "电影ID")
    private Long id;
    @ApiModelProperty(value = "电影名称")
    private String movieName;
    @ApiModelProperty(value = "上映时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date releaseYearDate;
    @ApiModelProperty(value = "导演")
    private String director;
    @ApiModelProperty(value = "编剧")
    private String writer;
    @ApiModelProperty(value = "主演")
    private String cast;
    @ApiModelProperty(value = "类型")
    private String genre;
    @ApiModelProperty(value = "语言")
    private String language;
    @ApiModelProperty(value = "片长")
    private Integer durationMinutes;
    @ApiModelProperty(value = "简介")
    private String description;
    @ApiModelProperty(value = "海报地址")
    private String posterUrl;
    @ApiModelProperty(value = "演员海报地址")
    private String actorUrl;
    @ApiModelProperty(value = "评分")
    private Double rating;
    @ApiModelProperty(value = "制作公司")
    private String productionCompany;
    @ApiModelProperty(value = "国家")
    private String country;
    @ApiModelProperty(value = "价格")
    private Double price;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
